package com.julian.iteratorPattern.componentPattern;

public class MenuTestDrive {
    public static void main(String[] args) {
        MenuComponent pancakeHouseMenu = new Menu("PANCAKE HOUSE MENU","BREAKFAST");
        MenuComponent dinerMenu = new Menu("DINER MENU","LUNCH");
        MenuComponent cafeMenu = new Menu("CAFE MENU","DINNER");
        MenuComponent dessertMenu = new Menu("DESSERT MENU","DESSERT of coures");//dinner的甜品子菜单
        
        MenuComponent allMenus = new Menu("ALL MENUS", "All menus combined");
        allMenus.add(pancakeHouseMenu);
        allMenus.add(dinerMenu);
        allMenus.add(cafeMenu);

        //添加早餐菜单项
        pancakeHouseMenu.add(new MenuItem("K&B'sPancake Breakfast","Pancakes with scrambled eggs, and toast",
                true,2.99));
        pancakeHouseMenu.add(new MenuItem("Regular Pancake Breakfast","Pancakes with fries eggs, sausage",
                false,2.99));
        pancakeHouseMenu.add(new MenuItem("Blueberry Pancakes", "Pancakes made with fresh blueberries",
                true,3.49));
        pancakeHouseMenu.add(new MenuItem("Waffles","Waffles, with your chioce of blueberries or starwberries",
                true,3.59));

        //添加午餐菜单项
        dinerMenu.add(new MenuItem("Vegetarian BLT","(Fakin) Bacon with letture & tomato on whole wheat",
                true,2.99));
        dinerMenu.add(new MenuItem("BLT","Bacon with letture & tomato on whole wheat",
                false,2.99));
        dinerMenu.add(new MenuItem("Soup of the day","Soup of the day ,with a side of potato salad",
                false,3.29));
        dinerMenu.add(new MenuItem("Hotdog","A hot dog, with a side of patato salad",
                false,3.29));


        //添加晚餐菜单项
        cafeMenu.add(new MenuItem("Veggie Burger and Air Fries","Veggie burger on a whole wheat bun,letture,tomato,and fries",
                true,3.99));
        cafeMenu.add(new MenuItem("Soup of the day","A cup of the soup of the day,with a side salad",
                false,3.69));
        cafeMenu.add(new MenuItem("Burrito","A large burrito, with whole pinto beans, salsa, guacamole",
                true,4.29));

        //添加甜品菜单项
        dessertMenu.add(new MenuItem("Apple Pie","Apple Pie with a flakey crust, topped with canilla ice cream",
                true,1.59));

        //把甜品菜单加入午餐菜单
        dinerMenu.add(dessertMenu);

        Waitress waitress = new Waitress(allMenus);
//        waitress.printMenu();//测试打印所有菜单
        waitress.printVegetarianMenu();//测试打印所有素菜菜单



    }
}
